import request from "@/tools/request";

export const login=(user)=>{
    return request.post("/user/login",user)
}
export const login1=(user,userInput)=>{
    return request.post("/user/login1",{
            user:user,
            userInput:userInput
    })
}

export const ShowImage=()=>{
    return request.get("/image/checkCode2")
}

export const ShowLogined=(username)=>{
    return request.get("/user/findByName",{
        params:{
            "username":username
        }
    })
}